import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { MemberAvatarComponent } from './member-avatar/member-avatar.component';
import { MemberFavoriteBoardEmbedComponent } from './member-favorite-board-embed/member-favorite-board-embed.component';
import { ThreadsItemEmbedComponent } from './threads-item-embed/threads-item-embed.component';
import { RouterModule } from '@angular/router';
import { ReplyItemEmbedComponent } from './reply-item-embed/reply-item-embed.component';
import { LazyLoadImageModule,LAZYLOAD_IMAGE_HOOKS, ScrollHooks } from 'ng-lazyload-image';
import { ThreadsAlbumeItemEmbedComponent } from './threads-albume-item-embed/threads-albume-item-embed.component';
import { ReplyItemMoodEmbedComponent } from './reply-item-mood-embed/reply-item-mood-embed.component';
import { MemberItemEmbedComponent } from './member-item-embed/member-item-embed.component';
import { RicheditorComponent } from './richeditor/richeditor.component';
import { AngularEditorModule } from '@kolkov/angular-editor';
import { FormsModule } from '@angular/forms';
import { ThreadsPosterCoverEmbedComponent } from './threads-poster-cover-embed/threads-poster-cover-embed.component';
import { MomentModule } from 'ngx-moment';
import { BrowserModule } from '@angular/platform-browser';
import { ReportFormEmbedComponent } from './report-form-embed/report-form-embed.component';
import { QuickReplyFormComponent } from './quick-reply-form/quick-reply-form.component';
import { HistoryBackDirective } from './history-back.directive';
import { SideMemberPanelComponent } from './side-member-panel/side-member-panel.component';
import { RightSidePanelDrawerDirective } from './right-side-panel-drawer.directive';
import { StickyScrollNavbarDirective } from './sticky-scroll-navbar.directive';
import { NavbarMemberPanelComponent } from './navbar-member-panel/navbar-member-panel.component';
import { MemberLocalAvatarComponent } from './member-local-avatar/member-local-avatar.component';
import { BoardItemCollectEmbedComponent } from './board-item-collect-embed/board-item-collect-embed.component';
import {AutosizeModule} from 'ngx-autosize';
@NgModule({
  declarations: [
    MemberAvatarComponent,
    MemberFavoriteBoardEmbedComponent,
    ThreadsItemEmbedComponent,
    ReplyItemEmbedComponent,
    ThreadsAlbumeItemEmbedComponent,
    ReplyItemMoodEmbedComponent,
    MemberItemEmbedComponent,
    RicheditorComponent,
    ThreadsPosterCoverEmbedComponent,
    ReportFormEmbedComponent,
    QuickReplyFormComponent,
    HistoryBackDirective,
    SideMemberPanelComponent,
    RightSidePanelDrawerDirective,
    StickyScrollNavbarDirective,
    NavbarMemberPanelComponent,
    MemberLocalAvatarComponent,
    BoardItemCollectEmbedComponent
  ],
  imports: [
    BrowserModule,
    CommonModule,
    RouterModule,
    FormsModule,
    LazyLoadImageModule,
    AngularEditorModule,
    MomentModule.forRoot({
      relativeTimeThresholdOptions: {
        'm': 59
      }
    }),
    AutosizeModule
  ],
  providers: [{ provide: LAZYLOAD_IMAGE_HOOKS, useClass: ScrollHooks }],
  exports: [
    MemberAvatarComponent,
    MemberItemEmbedComponent,
    MemberFavoriteBoardEmbedComponent,
    MemberFavoriteBoardEmbedComponent,
    ThreadsItemEmbedComponent,
    ThreadsAlbumeItemEmbedComponent,
    ThreadsPosterCoverEmbedComponent,
    ReplyItemEmbedComponent,
    ReplyItemMoodEmbedComponent,
    RicheditorComponent,
    ReportFormEmbedComponent,
    HistoryBackDirective,
    QuickReplyFormComponent,
    SideMemberPanelComponent,
    RightSidePanelDrawerDirective,
    StickyScrollNavbarDirective,
    NavbarMemberPanelComponent,
    MemberLocalAvatarComponent,
    BoardItemCollectEmbedComponent
  ]
})
export class EmbedModule { }
